package com.zbkj.admin.model.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class SFExpressRouteSubscribeReq {

    @JsonProperty("Body")
    private Body body;

    @Data
    public static class Body {
        @JsonProperty("WaybillRoute")
        private List<WaybillRoute> waybillRoute;
    }

    @Data
    public static class WaybillRoute {
        private String mailno;
        private String acceptAddress;
        private String reasonName;
        private String orderid;
        private String acceptTime;
        private String remark;
        private String opCode;
        private String id;
        private String reasonCode;
    }


    /**


     {
     "Body": {
     "WaybillRoute": [{
     "mailno": "SF7444400031887",
     "acceptAddress": "test",
     "reasonName": "",
     "orderid": "202003225d33322239ddW1df5t3",
     "acceptTime": "2020-05-11 16:56:54",
     "remark": "test",
     "opCode": "50",
     "id": "158918741444476",
     "reasonCode": ""
     },
     {
     "mailno": "SF7444400031887",
     "acceptAddress": "test",
     "reasonName": "",
     "orderid": "202003225d33322239ddW1df5t3",
     "acceptTime": "2020-05-11 16:56:54",
     "remark": "test",
     "opCode": "80",
     "id": "158918741457126",
     "reasonCode": ""
     }]
     }
     }

     */
}
